<!doctype html>
<html lang=en dir=ltr class="no-js theme-united" xmlns:th="http://www.thymeleaf.org">
<div th:replace="site/head::head(${title}, ${pageName})"></div>

<body class="page page-is-loading page-type-page page-type-archive">
    <div th:replace="site/head::navbar"></div>

    <div class="container-fluid main-container" id=J_main-container>
        <div class=row>
            <div class=col-md-12>
                <h1 class=page-title>文章归档</h1>
            </div>
        </div>
        <div class=row>
            <div class=col-md-12>
                <div class=post-container>
                    <div id=archive-switch>切换年份：
                        <th:block th:each="key,index : ${archiveMap.keySet()}">
                            <th:block th:if="${index} eq 0">
                                <a th:href="'#' + ${key}" th:text="${key} + '年'" class=active></a>
                            </th:block>
                            <th:block th:unless="${index} eq 0">
                                <a th:href="'#' + ${key}" th:text="${key} + '年'"></a>
                            </th:block>
                        </th:block>
                    </div>
                    <th:block th:each="entry : ${archiveMap.entrySet()}">
                        <div th:id="'archive-box-' + ${entry.key}" class=archive-box>
                            <th:block th:each="article : ${entry.value}">
                                <h2 class=post-title><a th:text="${article.title}" th:href="@{'/post/' + ${article.id}}" rel=bookmark></a></h2>
                                <div class=meta-box><span class=m-post-date><i class="fa fa-calendar-o"></i><span th:text="${commonUtils.fmtdate(article.createTime)}"></span></span>
<!--                                    <span class=m-post-nick>听风合笙</span>-->
                                </div>
                                <div class="post-content post-expect"></div>
                                <div class="meta-box post-bottom-meta-box hidden-print">
                                    <th:block th:if="${article.tags != null}">
                                        <div class=tag-links><i class="fa fa-tags" aria-hidden=true></i>
                                            <th:block th:each="tag, index: ${#strings.listSplit(article.tags, ',')}">
                                                <a th:href="'/tags/' + ${tag}" th:text="${tag}" rel=tag></a>
                                            </th:block>
                                        </div>
                                    </th:block>
                                </div>
                            </th:block>
                        </div>
                    </th:block>
                </div>
            </div>
        </div>
    </div>

    <div th:replace="site/footer::footer(${pageName})"></div>
</body>

</html>